package D240424;


public class Poker {
    String[] type = new String[]{"Spade", "Heart", "Diamond", "Club"};
    String[] number = new String[]{"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"};
    String[][] total = new String[type.length][number.length];
    //String[] joker =new String[]{"Joker1","Joker2"};

    public Poker() {

        for (int i = 0; i < type.length; i++) {
            for (int j = 0; j < number.length; j++) {
                total[i][j] = type[i] + " " + number[j];
            }
        }
    }

    public void showAll() {
        for (int i = 0; i < type.length; i++) {
            for (int j = 0; j < number.length; j++) {
                System.out.print(total[i][j] + ",");
                if (j == 12) {
                    System.out.println();
                }
            }
        }
        //System.out.println(Arrays.toString(joker));
    }
}
